package com.spring.Service.Interface;

import com.spring.Entity.UserEntity;
import jxl.read.biff.BiffException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * Created by Arabira on 2016/8/3.
 */
public interface UserServie {

    String login(String userName, String password);

    int addUser(UserEntity userEntity);

    int updateUser(UserEntity userEntity, String oa, String emailAddress);

    UserEntity findById(String userId);

    UserEntity findByUserName(String userName);

    int changePassword(String userId, String oldPassword, String newPassword);

    int changePassByAdmin(String userId, String newPassword);

    String addByExcel(MultipartFile file) throws IOException, BiffException;

    Boolean checkUser(UserEntity userEntity);

    Map<String, Object> findUsersAll();

    Map<String, Object> findReqUsersAll(UserEntity userEntity);

    UserEntity findByUserId(String userId);

    int updateUserByAdmin(UserEntity userEntity);
}
